/*
 * @Author: wjl 2820890765@qq.com
 * @Date: 2025-06-23 17:26:46
 * @LastEditors: wjl 2820890765@qq.com
 * @LastEditTime: 2025-06-25 10:31:28
 * @FilePath: /wzFront/src/router/index.js
 * @Description:
 * Copyright (c) 2025 by wjl, All Rights Reserved.
 */
import { createRouter, createWebHashHistory } from "vue-router";
import { isEmpty } from "@/utils/common.js";

//制定路由规则
const routes = [
  {
    path: "/",
    name: "main",
    icon: "house",
    redirect: "/home",
    component: () => import("@/views/Main.vue"),
    children: [],
    // children: [
    //   {
    //     path: "/home",
    //     name: "home",
    //     label: "首页",
    //     icon: "house",
    //     component: () => import("@/views/home/index.vue"),
    //   },
    //   {
    //     path: "/system",
    //     name: "system",
    //     label: "系统管理",
    //     icon: "Setting",
    //     children: [
    //       {
    //         path: "/user",
    //         name: "user",
    //         label: "用户管理",
    //         icon: "user",
    //         component: () => import("@/views/user/index.vue"),
    //       },
    //       {
    //         path: "/role",
    //         name: "role",
    //         label: "角色管理",
    //         icon: "UserFilled",
    //         component: () => import("@/views/role/index.vue"),
    //       },
    //       {
    //         path: "/menu",
    //         name: "menu",
    //         label: "菜单管理",
    //         icon: "Document",
    //         component: () => import("@/views/menu/index.vue"),
    //       },
    //     ],
    //   },
    // ],
  },
  {
    path: "/login",
    name: "login",
    component: () => import("@/views/login/index.vue"),
  },
  // {
  //   path: "/information",
  //   name: "information",
  //   component: () => import("@/views/login/Information.vue"),
  // },
];

const router = createRouter({
  //设置路由模式
  history: createWebHashHistory(),
  routes,
});

//向外暴露路由
export default router;
